package com.example.user3.demo.mvp.model;

import com.example.user3.demo.Api;
import com.example.user3.demo.bean.ChapterListBean;
import com.example.user3.demo.contract.MainContract;
import com.zzy.base.http.RetrofitManager;
import com.zzy.base.mvp.BaseModel;

import retrofit2.Call;
import retrofit2.Callback;

public class MainModel extends BaseModel implements MainContract.IModel {

    @Override
    public void getChapterList(Callback<ChapterListBean> callback) {
        Call<ChapterListBean> call=  RetrofitManager.getInstance().getApiService(Api.class).getChaptersList();
        call.enqueue(callback);
    }
}
